package com.firemoss.magicbus.messaging.fillter
{
	import com.firemoss.magicbus.filter.IFilter;

	public class BeforeFilterChain extends AbstractFilterChain
	{
		
		public function BeforeFilterChain( filters : Array = null )
		{
			super( filters );
		}

		override public function execute( ...rest ) : *
		{
			for each ( var filter : BeforeFilter in filterList )
			{
				filter.before( rest[ 0 ] )
			}
			
			return rest
		}

		
		
	}
}